<template>
	<view class="collect-content">
		<u-cell title="微信" isLink
			:url="'/pages/me/management/management?manTitle=微信'+'&title='+titles+'&itemInfo='+JSON.stringify(wxInfo)"></u-cell>
		<u-cell title="支付宝" isLink
			:url="'/pages/me/management/management?manTitle=支付宝'+'&itemInfo='+JSON.stringify(zfbInfo)+'&title='+titles"></u-cell>
		<u-cell title="银行卡" isLink
			:url="'/pages/me/management/management?manTitle=银行卡'+'&itemInfo='+JSON.stringify(yhkInfo)+'&title='+titles"></u-cell>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				titles: '',
				user_id:'',
				wxInfo:'',
				zfbInfo:'',
				yhkInfo:''
			}
		},
		onLoad(options) {
			this.titles = options.title
			if(options.title != '收款管理'){
				JSON.parse(options.item).seller_list.map(item=>{
					if(item.type == 10){
						this.wxInfo =item
					} 
					if(item.type == 20){
						this.zfbInfo =item
					}
					if(item.type == 30){
						this.yhkInfo =item
					}
				})
			}
			uni.setNavigationBarTitle({
				title: options.title
			})
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #F6F7F9;
	}

	.collect-content {
		background-color: #fff;
	}
</style>